/**
 * 
 * @param length 
 * 根据传的长度随机数生成
 * @returns 
 */
export function generateRandomString(length: number): string {
    let result = ''
    const characters = "abcdefghijklmnopqrstuvwxyz"
    for (let i = 0; i < length; i++) {
        const randomIndex = Math.floor(Math.random() * characters.length)
        result += characters.charAt(randomIndex)
    }
    return result
}